home *** CD-ROM | disk | FTP | other *** search
/ Amiga CD-ROM Collection / Amiga CD-ROM Collection - Auge 4000 and Cactus and Demo Util.iso / auge4000 / 46 / lib / fd / mkdir.c < prev    next >
C/C++ Source or Header  |  1990-06-20  |  218b  |  22 lines

  1.  
  2. /*
  3.  *  MKDIR.C
  4.  */
  5.  
  6. #include <libraries/dos.h>
  7. #include <errno.h>
  8.  
  9. int
  10. mkdir(fileName)
  11. const char *fileName;
  12. {
  13.     BPTR lock;
  14.  
  15.     if (lock = CreateDir(fileName)) {
  16.     UnLock(lock);
  17.     return(0);
  18.     }
  19.     return(-1);
  20. }
  21.  
  22.